package cn.mrcode.fd.blog.dto;

/**
 * 统一返回结果
 * @author zhuqiang
 */
public class BlogResult<T> {
    private boolean success;
    private T data;
    private String info;

    public BlogResult(boolean success,String info) {
        this.info = info;
        this.success = success;
    }

    public BlogResult(boolean success,String info,T data) {
        this.success = success;
        this.data = data;
        this.info = info;
    }

    public BlogResult(boolean success,T data) {
        this.data = data;
        this.success = success;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
